import { hopeTheme } from "vuepress-theme-hope";
import { vfooter, vcopyright } from './footer'
import { Navbar_main } from './navbar/index.js'

export default hopeTheme({
  hostname: "https://docs.dbhg.top/",
  author: {
    name: "蛋白后宫",
    url: "https://dbhg.top",
  },
  iconAssets: "iconify",
  logo: "https://img.cdn.tencent-qq.cn/Yize/2023/05/6d19ed0008bb7ad9.png",
  repo: false,
  docsDir: false,
  locales: {
    "/": {
      navbar: Navbar_main,
      sidebar: "heading",
      heroImage: "https://img.cdn.tencent-qq.cn/Yize/2023/05/6d19ed0008bb7ad9.png",
      copyright: vcopyright,
      footer: vfooter,
      displayFooter: true,
      metaLocales: {
        editLink: false,
      },
    },
  },

  encrypt: {
    config: {

    },
  },

  plugins: {
    comment: {
      provider: false,
    },

    mdEnhance: {
      align: true,
      attrs: true,
      chart: true,
      codetabs: true,
      demo: true,
      echarts: true,
      figure: true,
      flowchart: true,
      gfm: true,
      imgLazyload: true,
      imgSize: true,
      include: true,
      katex: true,
      mark: true,
      mermaid: true,
      card: true,
      playground: {
        presets: ["ts", "vue"],
      },
      presentation: {
        plugins: ["highlight", "math", "search", "notes", "zoom"],
      },
      stylize: [
        {
          matcher: "Recommended",
          replacer: ({ tag }) => {
            if (tag === "em")
              return {
                tag: "Badge",
                attrs: { type: "tip" },
                content: "Recommended",
              };
          },
        },
      ],
      sub: true,
      sup: true,
      tabs: true,
      vPre: true,
      vuePlayground: true,
    },
  },
});
